package com.framework.service.app.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.app.BannerTypeDao;
import com.framework.entity.or.OrBannerType;
import com.framework.service.app.BannerTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author
 */
@Service("bannerTypeService")
public class BannerTypeServiceImpl extends ServiceImpl<BannerTypeDao,OrBannerType> implements BannerTypeService {


    @Override
    public List<OrBannerType> queryListByParentType(int type) {
        return selectList(new EntityWrapper<OrBannerType>().eq("parent_id",type));
    }
}
